import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', {
  state: () => {
    return {
      // 获取本地状态
      userinfo: JSON.parse(localStorage.getItem('loginData')) || {username: '', password: ''}
    }
  },
})